package com.testmanager.testmananger.shuiyou.szjk.mapper;


import com.testmanager.testmananger.shuiyou.szjk.domain.ChangeRecordEntity;
import com.testmanager.testmananger.shuiyou.szjk.dto.ChangeRecordDto;

public class ChangeRecordMapper {

    public static ChangeRecordDto toChangeRecordDto(ChangeRecordEntity changeRecordEntity){
        ChangeRecordDto changeRecordDto = new ChangeRecordDto();
        return changeRecordDto.setId(changeRecordEntity.getId())
                .setZipId(changeRecordEntity.getZipId())
                .setCaseName(changeRecordEntity.getCaseName());
    }

    public static ChangeRecordEntity toChangeRecordEntity(ChangeRecordDto changeRecordDto){
        ChangeRecordEntity changeRecordEntity = new ChangeRecordEntity();
        return changeRecordEntity.setId(changeRecordDto.getId())
                .setZipId(changeRecordDto.getZipId())
                .setCaseName(changeRecordDto.getCaseName());
    }


}
